package server

type TaskHandler interface {
	Handle(reqId string, params map[string]string) (string, error)
}

type TaskHandlerFunc func (reqId string, params map[string]string) (string, error)

func(f TaskHandlerFunc) Handle(reqId string, params map[string]string) (string, error) {
	return f(reqId, params)
}
